package com.chuangsi.project.admin.controller.app;


import com.chuangsi.framework.web.controller.BaseController;
import com.chuangsi.framework.web.domain.ResultObject;
import com.chuangsi.project.admin.dto.common.SelectDto;
import com.chuangsi.project.admin.service.ProductService;
import com.chuangsi.project.system.domain.SysDept;
import com.chuangsi.project.system.service.ISysDeptService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 部门 前端控制器
 * </p>
 *
 * @author 
 * @since 2024-05-10
 */
@Api(tags="APP-部门")
@RestController
@RequestMapping("/userApi/dept/app")
public class AppDeptController extends BaseController {

    @Autowired
    private ISysDeptService sysDeptService;


    @ApiOperation(value = "经销商下拉选",notes = "杨文博")
    @GetMapping("/getSelect")
    public ResultObject<List<SelectDto>> getSelect(){
        List<SelectDto> dataList = sysDeptService.getSelect();
        return ResultObject.ok().setData(dataList);
    }

}
